package com.atguigu.mybatis.bean;

import lombok.*;

/**
 * Created by Smexy on 2022/10/10
 *
 *  一个标准的JavaBean有以下特点:
 *          ①空参构造器
 *          ②为所有私有的属性提供公共的 getter，setter
 */
/*@Getter
@Setter
@ToString*/
@NoArgsConstructor
@AllArgsConstructor
@Data  // getter,setter,toString合体
public class Employee
{
    private Integer id;
    private String lastName;
    private String gender;
    private String email;

   /* public void setLast_name(String a){
        this.lastName = a;
    }*/

    public static void main(String[] args) {

        Employee employee = new Employee();

        Employee employee1 = new Employee(1, "tom", "male", "aaa");

        System.out.println(employee1);

    }
}
